import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
import Home from '../pages/home/Home'
import About from '../pages/about/About'
import Sort from '../pages/sort/Sort'
import Cart from  '../pages/cart/Cart'
export default new Router({
  mode:'history',//加上这个属性 路径里面就没有#
  routes: [
    {
		path:'/',//默认路由显示页面
		redirect:'/home'
	},
	{
		path:'/home',
		component:Home,
	},
	{
		path:'/sort',
		component:Sort
	},
	{
		path:'/cart',
		component:Cart
	},
	{
		path:'/about',
		component:About
	}
	
  ]
})
